<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>多行文本省略</title>
    <style>
        div {
            width: 300px;
            background-color: lightskyblue;
        }

        p {
            height: 105px;
            border: solid;
            overflow: hidden;
            text-align: justify;
            position: relative;
            padding-right: 1em;
        }

        p::after{
            content: "";
            position: absolute;
            height: 1.2em;
            width: 40%;
            background: linear-gradient(to right,rgba(255,255,255,0),lightskyblue 80%);
            right: 0;
            bottom: 0;

        }



    </style>
</head>
<body>
<div>
    <p>阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴
        阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴
        阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴</p>
</div>

</body>
</html>